<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
                        @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
		</style>
<script type="text/javascript">
    var t=jQuery.noConflict();
			t(document).ready(function() {
				t('#example').dataTable( {
				"sPaginationType": "full_numbers",
                 "sDom": 'T C lfrtip',
                  "sScrollX": "100%",
                  "sScrollXInner": "110%",
                  "bScrollCollapse": true,
                  "oTableTools": { 
                    "sSwfPath": "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/swf/copy_csv_xls_pdf.swf", 
                    "aButtons": [ 
                    "xls", 
                    "pdf"], 
                    },
               } );
	} );
</script>



<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/rpt_inscrip/inicio" ?>" method="post">
    <legend>REPORTES</legend>
    <div class="control-group">
        <label for="select03"><H4>SECCION:<?php echo (empty($listar)?$nom_seccion:"TODAS LAS SECCIONES");?></H4></label>
    </div>  
    
    <div id="tablamatriculai" >
        <table id="example" cellpadding="0" cellspacing="0" border="0" class="display">
        
            
            <thead>
                <tr>
                    <th >Nro</th> 
                    <th >CARRERA</th>
                    <th >CICLO</th>
                    <th >SECC</th>
                    <th >CEDULA</th>
                    <th >APELLIDOS</th>
                    <th >NOMBRES</th>
                    <th >FONO/CEL</th>
                    <th >EMAIL</th>
                    <th >FACE</th>

                    
                </tr>
            </thead>
            <tbody>
                <?php
                $fila=1;
                if (!empty($reporte)) {
                    foreach ($reporte as $i => $repor) {
                        ?>
                        <tr>
                            <td><?php echo $fila; ?>
                                </td>
                            <td><?php echo $repor['nombre_car'] ?></td>
                            <td><?php echo $repor['nombre_cic'] ?></td>
                            <td><?php echo ($repor['seccion']==1?"D":($repor['seccion']==2?"N":"FS"));?></td>
                            <td><?php echo $repor['cedula_pers'] ?></td>
                            <td> <?php echo "<a href='".base_url(). "admin.php/rpt_inscrip/ficha/" . $repor['id_matr']."'>". $repor['apellido_pers']."</a>" ?></td>
                            <td><?php echo $repor['nombre_pers'] ?></td>
                            <td><?php echo $repor['fono_pers']."<br>-".$repor['celular_pers'] ?></td>
                            
                            <td><div ><?php 
                            //if(strlen($repor['email_pers_est']) < 16) {
                                
                                echo $repor['email_pers_est'];
                            //}else {
                            //    echo substr($repor['email_pers_est'], 0, 16)." ".
                            //            substr($repor['email_pers_est'], 16);
                                
                            //}
                            
                            //$pieces = explode("@", $repor['email_pers_est']);
                            ?></div> </td>
                            <td><?php echo $repor['face_est'] ?></td>
                            
                        </tr>
                        <?php
                        $fila+=1;
                    }
                }
                ?>
            </tbody>
        </table>  
    </div>


        <div class="controls">
                <button type="submit" class="btn">Volver Datos</button>


        </div> 


</form>


